package org.litu.base.entity;

/**
 * 固定的数据库字段的枚举类，为了后续编写规范何使用便捷
 *
 * @author yueye
 */
public enum StaticFieldEnum {
    /**
     * 主键
     */
    Id("id", "主键"),
    /**
     * 名称
     */
    Name("name", "名称"),
    CreateBy("createBy", "创建人"),
    CreateTime("createTime", "创建时间"),
    ModifyBy("modifyBy", "修改人"),
    ModifyTime("modifyTime", "修改时间"),
    DeleteFlag("deleteFlag", "删除标识"),
    EnableDelete("enableDelete", "可否删除"),
    Layers("Layers", "层级"),
    ParentId("ParentId", "父级");

    private String code;
    private String name;

    private StaticFieldEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
